package com.tx.spring_security.spring_security_demo.util;


import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author ：tx
 * @description：
 * @date ：Created in 2019/8/16 15:30
 * @modified By：
 * @version:
 */
public class MercuryEncoder  implements PasswordEncoder {
    @Override
    public String encode(CharSequence charSequence) {
        return charSequence.toString();
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
        return s.equals(charSequence.toString());
    }
}

